import Mixins from '@/views/mixins'
import system from '@/api/system'
export default {
  mixins: [Mixins],
  data () {
    return {
      dicTypeOptions: []
    }
  },
  methods: {
    getRequestType (opt) {
      if (opt === 'deleteDict') {
        return system.deleteDictAPI
      } else {
        if (this.id === 'dict') {
          return system.getDictListAPI
        }
      }
    },
    getDicTypeList () {
      system.getDictALlByBizTypeAPI().then(res => {
        this.dicTypeOptions = res.data || []
      })
    }
  }
}
